<?php
namespace Dybasedev\Dataman\Schema;

use Closure;
use Illuminate\Database\Schema\Builder as LaravelBuilder;

class Builder extends LaravelBuilder {

    /**
     * Create a new command set with a Closure.
     *
     * @param  string  $table
     * @param  \Closure|null  $callback
     * @return \Illuminate\Database\Schema\Blueprint
     */
    protected function createBlueprint($table, Closure $callback = null)
    {
        if (isset($this->resolver))
        {
            return call_user_func($this->resolver, $table, $callback);
        }

        return new Blueprint($table, $callback);
    }

}
